[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
outtextxy() Output a String to Screen at Specified Position
#include <graphics.h>
void far outtextxy(x,y,tstring);
int x;
int y;
char far *tstring;
outtextxy() outputs graphics text at the specified position ('x','y')
relative to the current viewport. The text is output using the
current text font, text direction, character size and text
justification settings. (See settextstyle() and settextjustify() for
more information regarding these text attributes.)
Returns: Nothing.
-------------------------------- Example ---------------------------------
The following statements output a string of text after setting the
text font, direction and character size.
#include <graphics.h>
#include <conio.h>
main()
{
int gdriver = DETECT;
int gmode;
initgraph(&gdriver,&gmode,"");
settextstyle(GOTHIC_FONT,HORIZ_DIR,2);
outtextxy(200,100,"ENGLISH LITERATURE");
getch();
closegraph();
}
See Also:
gettextsettings()
textheight()
outtextxy()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson